<?php



class BuyDataMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.BuyDataMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('buy_data');
		$tMap->setPhpName('BuyData');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('CATEGORY', 'Category', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PRICE', 'Price', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('QUANTITY', 'Quantity', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DATE_YEAR', 'DateYear', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DATE_MONTH', 'DateMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DATE_DAY', 'DateDay', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('MEMBER', 'Member', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('SEND_FLG', 'SendFlg', 'string', CreoleTypes::CHAR, false, 1);

	} 
} 